package com.cup.bddm.api.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cup.bddm.api.req.UserVo;
import com.cup.bddm.impala.dao.UserDao;
import com.cup.bddm.impala.po.User;

@Service("api-user-service")
public class UserService {
	@Autowired
	private UserDao userDao;

	public User getUser(UserVo vo) {
		return userDao.getUserInfoByNameAndInsCd(vo.getLogin_name(), vo.getCup_branch_ins_id_cd());
	}

}
